package generalClasses;

public class SynchronizedCounter {
    private int value;
    
    public SynchronizedCounter() {
		this.value = 0;
	}
	public synchronized int getValue() { return value; }
    public synchronized int increment() { return ++value; }
    public synchronized int decrement() { return --value; }
}